package ClassesAndObejdctes;
/*
标准的javaBean
 */
public class User {
    //属性
    private String userName;
    private String passWord;
    private String email;
    private String gender;
    private int age;

    // 构造方法
    public User(){}
    public User(String userName,String passWord,String email,String gender,int age){
        this.userName = userName;
        this.passWord = passWord;
        this.email = email;
        this.gender = gender;
        this.age = age;
    }

    //set和get方法
    public void setUserName(String userName){this.userName = userName;}
    public String getUserName(){return userName;}

    public void setPassWord(String passWord){this.passWord = passWord;}
    public String getPassWord(){return passWord;}

    public void setEmail(String email){this.email = email;}
    public String getEmail(){return email;}

    public void setGender(String gender){this.gender = gender;}
    public String getGender(){return gender;}

    public void setAge(){this.age = age;}
    public int getAge(){return age;}

}
